package top.guxx.mall.dao;

import top.guxx.mall.constants.Constants;
import top.guxx.mall.domain.dto.PaidOrderDTO;
import top.guxx.mall.domain.po.PayOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author：Guxx
 * @Description：
 * @Date：2025/2/19 0:04
 * @Filename：IOrderDao
 */

@Mapper
public interface IOrderDao {
    void insert(PayOrder payOrder);

    PayOrder queryUnPayOrder(PayOrder payOrder);

    void updateOrderPayInfo(PayOrder payOrder);

    void changeOrderPaySuccess(PayOrder payOrderReq);

    List<String> queryTimeOutOrders();

    boolean closeOrder(String orderId);

    List<String> queryNoPayNotifyOrder();

    List<PayOrder> queryPaidOrder(String userId);
}
